using Castle.MonoRail.Framework;
using WineCellar.Data;

namespace WineCellar.Web.Components
{
    public class RaisinRowComponent :ViewComponent
    {
        private Raisin raisin;

        public override void Initialize()
        {
            raisin = (Raisin)ComponentParams["raisin"];
            base.Initialize();
        }
        public override void Render()
        {
            PropertyBag["raisin"] = raisin;            
            base.Render();
        }
    }
}
